package com.study.config;

//@Configuration
//public class WebMvcConfig implements WebMvcConfigurer {
    //@Override
    //public void addViewControllers(ViewControllerRegistry registry) {
    //    registry.addViewController("/home").setViewName("home");
    //    registry.addViewController("/").setViewName("home");
    //    registry.addViewController("/hello").setViewName("hello");
    //    registry.addViewController("/toLoginPage").setViewName("login");
    //}
    /**
     * 注册添加静态资源
     */
    //@Override
    //public void addResourceHandlers(ResourceHandlerRegistry registry) {
    //    registry.addResourceHandler("/login/**").addResourceLocations("classpath:/login/");
    //}
//}
